package com.jackson.framekafka.utils;

/*
 * Author: JacksonCoder
 * FileName: Test
 * Version: 1.0.0
 * Date: 2025/4/18
 */

import com.alibaba.fastjson.JSONObject;
import com.jackson.framekafka.entity.User;

public class Test {
    public static void main(String[] args) {
        // HashMap<String, String> map = new HashMap<>();
        // map.put("xxx","name");
        // map.put("xxx2","name");
        // map.put("xxx3","name");
        //
        // System.out.println(JSONObject.toJSONString(map));
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("name", "lisi");
        jsonObject.put("age", 12);

        User user = JSONObject.parseObject(jsonObject.toJSONString(), User.class);
        System.out.println(user);


    }
}
